package com.xin.di.uav.applet.resp;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class OrderResp {

    private int total;

    private List<Record> recordList = new ArrayList<>();

    @Data
    public static class Record {

        private BigDecimal expressFee;
        private String id;

        private String orderNo;

        private String productName;

        private Integer quantity;

        private BigDecimal unitPrice;

        private BigDecimal totalAmount;

        private Date orderTime;

        private Date completeTime;

        private String merchantName;

        private String serviceArea;

        private String fyOrderNo;
        private Integer status;

        private Date createdAt;

        private Date updatedAt;

        private String payPhone;

        private List<OrderCommodityResp> orderCommodityRespList = new ArrayList<>();

    }

    @Data
    public static class OrderCommodityResp {

        /**
         * 数量
         */
        private Integer cnt;

        /**
         * 单价
         */
        private BigDecimal price;

        /**
         * 商品名称
         */
        private String name;

        /**
         * 图片数组(主图放第一)
         */
        private String images;

        /**
         * 规格值
         */
        private String value;

        private String value2;

        private String value3;

        private String value4;
        private String value5;

    }
}
